package com.cn.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 * @param <T> 数据类型
 */
public class PageResult<T> implements Serializable {

    private long total; //总记录数

    private List<T> records; //当前页数据集合

    public PageResult(long total, List<T> records) {
        this.total = total;
        this.records = records;
    }
    public PageResult() {
    }
    public long getTotal() {
        return total;
    }
    public void setTotal(long total) {
        this.total = total;
    }
    public List<T> getRecords() {
        return records;
    }
    public void setRecords(List<T> records) {
        this.records = records;
    }

}
